package com.ssy.lingxi.marketing.api.model.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 *  活动商品销量更新
 * @author ds
 * @date 2021/10/13
 * @version 2.0.0
 */
@Getter
@Setter
public class GoodsSalesReq implements Serializable {


    private static final long serialVersionUID = -3162595589711507116L;
    /**
     * 单据类型 -ActivityRecordTypeEnum
     */
    private Integer recordType;
    /**
     * 采购会员id
     */
    @NotNull(message = "采购会员id不能为空")
    private Long memberId;
    /**
     * 采购会员名称
     */
    @NotNull(message = "采购会员名称不能为空")
    private String memberName;

    /**
     * 采购角色id
     */
    @NotNull(message = "采购角色id不能为空")
    private Long roleId;
    /**
     * 活动销量参数
     */
    @Valid
    @Size(min = 1,message = "活动销量参数项不能为空")
    private List<GoodsSalesItemReq> itemList;

    /**
     * 商城id
     */
    private Long shopId;
    /**
     * 商城名称
     */
    private String shopName;
    /**
     * 单据时间
     */
    private Long orderTime;
}
